package cn.springcloud.fix.resource.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration;
import org.springframework.security.oauth2.provider.authentication.BearerTokenExtractor;
import org.springframework.security.oauth2.provider.token.RemoteTokenServices;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/test")
public class ApiController {

    @RequestMapping(value = "/test")
    public Map<String, String> info() {
        Map<String, String> map = new HashMap<>();
        map.put("username", "yangjun");
        return map;
    }
}
